import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {AdOssUploadService} from '../../lib/service/ad-oss-upload.service';
import {Ng2BootstrapModule, PaginationModule} from 'ngx-bootstrap';
import {NotificationModule} from '../../comm-components/notification/notification.module';
import { datepickerModule } from '../../comm-components/datepicker/datepicker.module';
import {LoadingModule} from '../../comm-components/loading/loading.module';
import {routing} from 'app/main/store-product/store-product.routing';
import {GoodsAddComponent} from './goods-add/goods-add.component';
import {AddComponent} from './goods-add/add/add.component';
import {GoodsManageComponent} from './goods-manage/goods-manage.component';
import {OrderManageComponent} from './order-manage/order-manage.component';
import {DeliveryManageComponent} from './delivery-manage/delivery-manage.component';
import {DeliveryAddComponent} from './delivery-manage/delivery-add/delivery-add.component';
import {DeliveryEditComponent} from './delivery-manage/delivery-edit/delivery-edit.component';
import {EditComponent} from './goods-add/edit/edit.component';
import {SuccessComponent} from './goods-add/success/success.component';
import {ShowCaseComponent} from './goods-manage/show-case/show-case.component';
import {GoodsStatusComponent} from './goods-manage/goods-status/goods-status.component';
import {OrdinarySpellComponent} from './goods-manage/ordinary-spell/ordinary-spell.component';
import {NewSpellComponent} from './goods-manage/new-spell/new-spell.component';
import {TemplateComponent} from './temp-manage/temp-manage.component';
import {EditorModule} from '../../comm-components/wangeditor/editor.module';
import {ValidateMoneyDirective} from '../../lib/directives/validate-money.directive';
import { LotterySpellComponent } from './goods-manage/lottery-spell/lottery-spell.component';

import { NgZorroAntdModule } from 'ng-zorro-antd';

@NgModule({
    imports: [
        CommonModule,
        FormsModule,
        routing,
        PaginationModule,
        Ng2BootstrapModule,
        ReactiveFormsModule,
        NotificationModule,
        datepickerModule,
        EditorModule,
        LoadingModule,
        NgZorroAntdModule.forRoot()
    ],
    declarations: [
        GoodsAddComponent,
        AddComponent,
        EditComponent,
        GoodsManageComponent,
        OrderManageComponent,
        DeliveryManageComponent,
        DeliveryAddComponent,
        DeliveryEditComponent,
        SuccessComponent,
        ShowCaseComponent,
        GoodsStatusComponent,
        OrdinarySpellComponent,
        NewSpellComponent,
        TemplateComponent,
        ValidateMoneyDirective,
        LotterySpellComponent,
    ],
    providers: [
        AdOssUploadService
    ]
})
export class StoreProductModule {
}
